﻿using NewRetail.Application.Components.Goods.Entity;
using NewRetail.Application.Core.Entity;
using System;

namespace NewRetail.Application.Components.Warehouse.Entity
{
    public class WholesaleInOut : BaseEntity, IReceiptEntity, IInOrOutEntity, IWarehouseEntity
    {
        public string receiptNo { get; set; }
        public DateTime receiptDate { get; set; }
        public string customerID { get; set; }
        public string goodsID { get; set; }
        public string warehouseID { get; set; }
        public decimal quantity { get; set; }
        public decimal price { get; set; }
        public int inOrOut { get; set; }
        public string remark { get; set; }
        /// <summary>
        /// 整单备注
        /// </summary>
        public string remarkMst { get; set; }
        /// <summary>
        /// 单价类型  0:零售价  1:会员价
        /// </summary>
        public int? priceType { get; set; } = 0;
        /// <summary>
        /// 整单优惠金额
        /// </summary>
        public decimal discountAmountMst { get; set; }
        public bool isAuditing { get; set; }
        public int? operateUserID { get; set; }
        public DateTime? operateTime { get; set; }

        public WholesaleCustomer WholesaleCustomer { get; set; }
        public Warehouse Warehouse { get; set; }
        public GoodsInfo GoodsInfo { get; set; }
        /// <summary>
        /// 会员价
        /// </summary>
        public GoodsMemberPrice GoodsMemberPrice { get; set; }
    }
}
